package com.easyadmin.pro.common.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * packageName com.easyadmin.pro.common.vo
 *
 * @author 骑着蚂蚁去上天
 * @version JDK 17
 * @className RouterTree
 * @date 2024/4/16
 * @description 路由树对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class RouterTree {

    /**
     * 路由Id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long key;

    /**
     * 路由名称
     */
    private String value;

    /**
     * 子节点
     */
    private List<RouterTree> children;
}